package org.example.ch02;

import org.example.ch02.entity.User;
import org.example.ch02.service.UserService;


/**
 * ClassName: Main
 * Description:
 *
 * @Author zjl
 * @Create 2025/04/23 09:03
 * @Version 1.0
 */
public class Main {

    public static void main(String[] args) {
        User user = new User();
        user.setName("USER4");
        user.setAge(24);
        UserService service = new UserService();
        service.save(user);
        System.out.println(user.getId());
    }
}
